import http from "@/api/axios";

export const getListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizPreOrderShipment/manager/selectBypage",
    data
  });
};
// 手动扣货
export const batchDetainGoodsApi = (data: { idList: Array<string>; releaseReason: string | undefined }) => {
  return http({
    method: "post",
    url: "/base/biz/bizPreOrderShipment/shipmentDetentionBatch",
    data
  });
};
// 代理状态标记
export const agentStatusMarkApi = (data: { idList: string[]; agentStatus: number }) => {
  return http({
    method: "post",
    url: "/base/biz/bizPreOrderShipment/updateAgentStatus",
    data
  });
};
// 手动放货
export const releaseCargoBatchApi = (data: Array<string>) => {
  return http({
    method: "post",
    url: "/base/biz/bizPreOrderShipment/shipmentReleaseBatch",
    data
  });
};

// 导出
export const exportFinanceShipmentListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/export/biz/exportExcel/financeShipmentList",
    data
  });
};
